package com.train.trainmanage.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.train.trainmanage.mapper.DepartmentModelMapper;
import com.train.trainmanage.model.DepartmentModel;
import com.train.trainmanage.service.DepartmentService;

@Service
public class DepartmentServiceImpl implements DepartmentService{

	@Autowired
	private DepartmentModelMapper departmentMapper;
	
	@Override
	public List<DepartmentModel> allDepartmentList() {
		List<DepartmentModel> result = departmentMapper.allDepartmentList();
		return result;
	}

}
